package chixing.day07.homwork;

public class ColorPrinter extends Printer{
    private String color;

    public ColorPrinter(){}
    public ColorPrinter(String color) {
        this.color = color;
    }

    public ColorPrinter(String msg, String color) {
        super(msg);
        this.color = color;
    }


    public void print(String msg,String color){
        System.out.println("Printing in [color]: [msg]");
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "ColorPrinter{" +
                "color='" + color + '\'' +
                '}';
    }
}
